//
//  CWQPlayMenu.m
//  腾讯云直播test
//
//  Created by 陈武琦 on 16/8/3.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import "CWQPlayMenu.h"

@implementation CWQPlayMenu


- (void)awakeFromNib {

    _cwqPlayProgress.maximumValue = 0;
    _cwqPlayProgress.minimumValue = 0;
    _cwqPlayProgress.value = 0;
    _cwqPlayProgress.continuous = NO;

}


- (IBAction)startPlayClick:(UIButton *)sender {
    if ([_delegate respondsToSelector:@selector(cwqPlayMenuPlay:)]) {
        [_delegate cwqPlayMenuPlay:sender];
    }
}
- (IBAction)nextPlayClick:(UIButton *)sender {
   
}
- (IBAction)fullScreenClick:(id)sender {
    if ([_delegate respondsToSelector:@selector(cwqFullScreen:)]) {
        [_delegate cwqFullScreen:sender];
    }
}
- (IBAction)slidercChangValue:(UISlider *)sender {
    
    if ([_delegate respondsToSelector:@selector(cwqSliderChangValue:)]) {
        [_delegate cwqSliderChangValue:sender];
    }
}
- (IBAction)sliderTouchDown:(UISlider *)sender {
    if ([_delegate respondsToSelector:@selector(cwqSliderTouchDown:)]) {
        [_delegate cwqSliderTouchDown:sender];
    }
}
- (IBAction)sliderDrag:(UISlider *)sender {
    if ([_delegate respondsToSelector:@selector(cwqSliderDrag:)]) {
        [_delegate cwqSliderDrag:sender];
    }
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
